import request from '@/utils/request';

// 供应商列表
export function getSupplierList(params) {
  return request('/supplier/list', {
    params,
  });
}

// 供应商详情
export function getSupplierDetail(params) {
  return request(`/supplier/detail/${params.id}`);
}

// 设置供应商的状态
export function setSupplierStatus(data) {
  return request(`/supplier/setStatus/${data.id}`, {
    method: 'put',
    data,
  });
}
